package com.aierkeji.b2c.entity.constant;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import com.aierkeji.b2c.entity.vo.SearchOptionsVo;

public enum OrderStatus {

	PAY("支付"),
	SENT("发货"),
	ISSUE("完结"),
	CANCEL("取消")
	;
	
	private String lable;
	
	private OrderStatus(String lable) {
		this.lable = lable;
	}
	
	

	public String getLable() {
		return lable;
	}



	public void setLable(String lable) {
		this.lable = lable;
	}



	public  static List<SearchOptionsVo> changeSearchOptionVo(){
		Stream<OrderStatus> stream = Arrays.stream(OrderStatus.values());
		List<SearchOptionsVo> list = stream.map(k->new SearchOptionsVo(k.getLable(),k.name())).collect(Collectors.toList());
		return list;
	}
}
